package com.zgjkhis.modules.registration.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zgjkhis.annotation.Query;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* @date 2019-6-4 14:49:34
*/
@Data
@NoArgsConstructor
public class ConsultQueryCriteria {

    @Query
    @ApiModelProperty(value = "患者姓名/手机号后4位")
    private String name;

    @Query
    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @Query
    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "科室")
    private String departId;

    @ApiModelProperty(value = "接诊类型 1：初诊，2：复诊，3：急诊")
    private Integer consultType;

    @ApiModelProperty(value = "接诊状态 1:待就诊，2：就诊中，3：已完成，4：已取消")
    private Integer consultStatus;

    @ApiModelProperty(value = "接诊医生")
    private String consultDocId;

    @ApiModelProperty(value = "门店id,后台填充")
    private String pharmacyId;

}
